import React, { Component } from "react";
import { connect } from "react-redux";

class chil extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  numbera() {
    this.props.dispatch({
      type: "2",
      number: 9,
    });
  }
  render() {
    console.log(this.props, "===child"); //dispatch

    return <div onClick={this.numbera.bind(this)}>我是child</div>;
  }
}
export default connect()(chil);
